<?php
namespace Homework5;

class Node {
	
	private $parent;
	private $value;
	
	public function __construct() {
		$this->parent = null;
		$this->value = null;
	}
	
	public function setParent(Node $parent) {
		$this->parent = $parent;
	}
	
	public function getParent() {
		
		return $this->parent;
	}
	
	public function setValue($value) {
		$this->value = $value;
	}
	
	public function getValue() {
		
		return $this->value;
	}
	
}